package com.baidu.job;


import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.baidu.basic.DateUtils;
import com.baidu.util.TestUtil;
import com.jfinal.core.Controller;


/**
 * 清空回帖记录
 * @author iicm
 * 2016-02-15 16:33
 */
public class ClearRec extends Controller implements Job{
	
	@Override
	public void execute(JobExecutionContext context)
			throws JobExecutionException {
		try {
		    System.out.println("清空回帖记录任务执行时间："+DateUtils.realTime("Asia/Shanghai"));
			MainJobContent.clearRec();
		} catch (Exception e) {
			e.printStackTrace();
			TestUtil.systemOutPrintln("清空之前回帖记录出现异常");
		}
	}
}
